<?php

$icon_url = filter_var($_POST['icon_url'], FILTER_SANITIZE_STRING);
$price = doubleval($_POST['price']);
$price_org = doubleval($_POST['price_org']);
$phone = @filter_var($_POST['phone'], FILTER_SANITIZE_STRING);

//自动提取图标URL
if (empty($icon_url)) {
	$icon_url = $f_bg_url;
}

$rs = dt_query("INSERT INTO forum_topic_ext_1 (id, icon_url, price, price_org, phone) VALUES (last_insert_id(), '$icon_url', '$price', '$price_org', '$phone')");
if (!$rs) die('新建forum_topic_ext_1数据失败！^_^');
